package com.jiutong.meipengdai.http.model.requests;

import com.jiutong.meipengdai.http.RetrofitHandle;
import com.jiutong.meipengdai.http.SubscribeHandler;
import com.jiutong.meipengdai.http.model.services.MyAccountService;

import java.util.Map;

import rx.Observable;
import rx.Subscriber;

/**
 * 作用:
 * Created by 78 on 2017/6/27.
 */

public class MyUserInfoRequest extends SubscribeHandler {

    /**
     * 性别/出生日期
     *
     * @param subscriber
     * @param fields
     */
    public void getSexBirthday(Subscriber subscriber, Map<String, Object> fields) {

        fields.put("method", "acct.setting");
        handleFields(fields);
        Observable observable = RetrofitHandle.getInstance().retrofit.create(MyAccountService.class)
                .sexBirthday(fields);
        toSubscribe(observable, subscriber);
    }
}
